﻿<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- 
        SPBasePermissions Enumeration -> http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
        Default Custom Action Locations and IDs -> http://msdn.microsoft.com/en-us/library/bb802730.aspx

        Using the Source in the url.
        http://weblogs.asp.net/jan/archive/2007/09/05/using-the-current-page-url-in-the-urlaction-of-a-sharepoint-feature.aspx
        <UrlAction Url="javascript:window.location= '{SiteUrl}/_layouts/mypage.aspx?List={ListId}&amp;Source=' + window.location"/>
-->
  
  <!-- Document Library Custom Action -->
  <CustomAction
      Id="DVK.SendToDVK"
      RegistrationType="List"
      RegistrationId="101"
      Location="EditControlBlock"
      Sequence="107"
      Title="$Resources:Dvk,CustomActionSendToDvkTitle;"
      Rights="EditListItems"
      ImageUrl="~/_layouts/images/DVK.SP2007/sendtodvk.gif"
    >
    <!--Url="~site/_layouts/DVK.SP2007/SendToDVK.aspx?Item={ItemId}&amp;List={ListId}&amp;ItemUrl={ItemUrl}-->
    <UrlAction 
      Url="javascript:window.location= '{SiteUrl}/_layouts/DVK.SP2007/SendToDVK.aspx?List={ListId}&amp;ItemUrl={ItemUrl}&amp;Source=' + window.location"/>
  </CustomAction>
  <!-- Document Library Custom Action -->
  <CustomAction
    Id="DVK.DvkDocumentHistory"
    RegistrationType="List"
    RegistrationId="101"
    Location="EditControlBlock"
    Sequence="107"
    Title="$Resources:Dvk,CustomActionDocumentHistoryTitle;"
    Rights="EditListItems"
    ImageUrl="~/_layouts/images/DVK.SP2007/sendtodvk.gif"
    >
    <UrlAction Url="~site/_layouts/DVK.SP2007/DocumentHistory.aspx?Item={ItemId}&amp;List={ListId}&amp;ItemUrl={ItemUrl}"/>
  </CustomAction>
  <!-- Dvk Inbox Library Custom Action -->
  <CustomAction
    Id="DVK.DvkMoveToDocumentLibrary"
    RegistrationType="List"
    RegistrationId="10092"
    Location="EditControlBlock"
    Sequence="107"
    Title="$Resources:Dvk,CustomActionMoveToDocumentLibraryTitle;"
    Rights="EditListItems"
    ImageUrl="~/_layouts/images/DVK.SP2007/sendtodvk.gif"
    >
    <UrlAction Url="~site/_layouts/DVK.SP2007/MoveDocument.aspx?Item={ItemId}&amp;List={ListId}&amp;ItemUrl={ItemUrl}"/>
  </CustomAction>
  <!-- Dvk Outbox Library Custom Action -->
  <CustomAction
    Id="DVK.ProcessAgain"
    RegistrationType="List"
    RegistrationId="10093"
    Location="EditControlBlock"
    Sequence="107"
    Title="$Resources:Dvk,CustomActionProcessAgainTitle;"
    Rights="EditListItems"
    ImageUrl="~/_layouts/images/DVK.SP2007/sendtodvk.gif"
    >
    <UrlAction Url="~site/_layouts/DVK.SP2007/ProcessAgain.aspx?Item={ItemId}&amp;List={ListId}&amp;ItemUrl={ItemUrl}"/>
  </CustomAction>
  <!-- MapMetadata.aspx on settings page-->
  <CustomAction
      Id="DvkMetadataMapping"
      Location="Microsoft.SharePoint.SiteSettings"
      Sequence="30"
      Title="$Resources:Dvk,CustomActionDvkMetadataMappingTitle;"
      Rights="ManageWeb"
      GroupId="SiteAdministration"
    >
    <UrlAction Url="~site/_layouts/DVK.SP2007/MapMetadata.aspx"/>
  </CustomAction>
  <!-- DvkSettings list on settings page-->
  <CustomAction
      Id="Dvk.Settings"
      Location="Microsoft.SharePoint.SiteSettings"
      Sequence="30"
      Title="$Resources:Dvk,CustomActionDvkSettingsTitle;"
      Rights="ManageWeb"
      GroupId="SiteAdministration"
    >
    <UrlAction Url="~site/Lists/DvkSettings/AllItems.aspx"/>
  </CustomAction>
</Elements>